import earth from '@/image/element/earth.jpg';
import bathymetry_bw_composite_4k from '@/image/element/bathymetry_bw_composite_4k.jpg';
import starfield from '@/image/element/starfield.jpg';
import night from '@/image/element/night.jpg';
import clouds from '@/image/element/clouds.png';
let Template = [
    {
        id: 'GlobeLayer_0001',
        component: 'GlobeLayer', // Globe Layers
        style: {
            width: {
                value: 500,
                pixel: 500,
                unit: 'px'
            },
            height: {
                value: 350,
                pixel: 350,
                unit: 'px'
            },
            top: {
                value: 0,
                pixel: 0,
                unit: 'px'
            },
            left: {
                value: 0,
                pixel: 0,
                unit: 'px'
            },
            bottom: {
                value: '',
                unit: 'px'
            },
            right: {
                value: '',
                unit: 'px'
            },
            backgroundImage: {
                angle: 90,
                color: []
            },
            borderRadius: {
                value: 0,
                unit: 'px'
            },
            borderWidth: 0,
            borderStyle: 'solid',
            borderColor: '#FFFFFF',
            boxShadow: {
                level: 0,
                vertical: 0,
                blur: 0,
                spread: 0,
                color: '#000000FF'
            },
            rotate: 0,
            opacity: 100,
            'z-index': '1',
            backdropFilter: 0,
            filter: 0
        },
        attribute: {
            visible: true,
            chartOption: {
                type: 'globe',
                option: {
                    backgroundColor: '#000',
                    globe: {
                        baseTexture: earth,
                        heightTexture: bathymetry_bw_composite_4k,
                        displacementScale: 0.1,
                        shading: 'lambert',
                        environment: starfield,
                        light: {
                            ambient: {
                                intensity: 0.1
                            },
                            main: {
                                intensity: 1.5
                            }
                        },
                        layers: [
                            {
                                type: 'blend',
                                blendTo: 'emission',
                                texture: night
                            },
                            {
                                type: 'overlay',
                                texture: clouds,
                                shading: 'lambert',
                                distance: 5
                            }
                        ]
                    },
                    series: [],
                }
            }, // echarts统计图模板 object
            interval: -1, // 定时器间隔（毫秒） number
            page: 0,
            highlight: false,
            locked: false
        },
        animate: [],
        event: [],
        data: {
            url: '',
            key: [],
            type: 'static',
            datatype: 'json',
            method: '0',
            field: [],
            value: [] // 二维数组 存静态数据 二维数组
        }
    }
]

export default Template;